import React from 'react';
import { Route } from 'react-router';
// import App from './containers/App';

const Dashboard = () => <h2>Dashboard</h2> ;
const FormPage = () => <h2>FormPage</h2> ;
const TablePage = () => <h2>TablePage</h2> ;
const NotFoundPage = () => <h2>NotFoundPage</h2> ;
const LoginPage = () => <h2>LoginPage</h2> ;

export default (
  <Route>
    <Route path="login" component={LoginPage}/>
    <Route path="/" component={Dashboard}>
      <Route path="dashboard" component={Dashboard}/>
      <Route path="form" component={FormPage}/>
      <Route path="table" component={TablePage}/>
      <Route path="*" component={NotFoundPage}/>
    </Route>
  </Route>
);
